/**
 * <p>Copyright: Copyright (c) 2014</p>
 * <p>Company: ---Technology Co. Ltd</p>
 * <p>2014-4-30</p>
 * @author Jan.Zhang
 */
package com.xianl.busiplat.common;

import java.io.Serializable;


/** 
 * desc:
 * <p>author: Jan.Zhang </p>
 * date: 2014-4-30
 */
public class RandomImg  implements Serializable{

	/**
	 * long:serialVersionUID 
	 */
	private static final long serialVersionUID = 2694239954245337122L;
	
	private static final int timeOut = 2*60*1000;
	private String rand;
	private  long initTime;
	
	public RandomImg(String rand){
		this.rand = rand;
		this.initTime = System.currentTimeMillis();
	}
	
	public boolean isTimeOut(){
		return (System.currentTimeMillis()-initTime>timeOut);
	}
	public String getRand(){
		return this.rand;
	}
	
}
